package logo.lang;

public class LogoWrongTypeException extends LogoException {

    String expectedType = "";
    String actualType = "";

    public LogoWrongTypeException(String msg) {
	super(msg);
    }

    public LogoWrongTypeException(String expected, String actual) {
	super("Cannot use " + actual + " where a " + expected +
	      " is expected");
	expectedType = expected;
	actualType = actual;
    }

    public String getActual() {
	return actualType;
    }

    public String getExpected() {
	return expectedType;
    }
}
